FROM golang:1.10-alpine AS builder
RUN apk update && apk add curl git make
COPY . /go/src/maki
WORKDIR /go/src/maki
RUN make install
RUN make build


FROM alpine:latest
COPY --from=builder /go/src/maki/build/main /app/
WORKDIR /app
CMD /app/main
